//
//  SAPPlayerViewController.h
//  CarsHome
//
//  Created by dapeng on 15/12/16.
//  Copyright © 2015年 dapeng. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "STKAudioPlayer.h"
#import "STKDataSource.h"
@interface SAPPlayerViewController : UIViewController
@property (nonatomic, retain) UIButton *playButton;
@property (nonatomic, retain) UIButton *nextButton;
@property (nonatomic, retain) UIButton *stopButton;
@property (nonatomic, retain) UIButton *previousTrack;

@property (nonatomic, copy) NSString *string;
@property (nonatomic, copy) NSString *titles;
@property (nonatomic, copy) NSString *picture;
@property (nonatomic, retain) UIImageView *musicImage;
@property (nonatomic, retain) UIImageView *backMusicImage;
@property (nonatomic, retain) UILabel *titleName;

@property (nonatomic, assign) NSInteger angle;

@property (nonatomic, retain) UILabel *timeLabel;
@property (nonatomic, retain) UISlider *progressSlider;
@property (nonatomic, retain) UISlider *volumeSlider;

@property(nonatomic,retain) STKDataSource *dataSource;

+(instancetype)sharePlayerViewController;

@property(nonatomic,retain)STKAudioPlayer *player;
@property(nonatomic,retain)NSTimer *timer;

@property(nonatomic,retain)NSMutableArray *allMusicArray;//存放上一页列表所有数据
@property(nonatomic,assign)NSInteger indexRow;//记录上一页点击cell的下标
@end
